package cn.ssm.pojo;

import java.util.Date;

/**
 * 后台管理用户表
 * 
 * @author 朱海松
 *
 */
public class Admin {
	private int id;// 管理用户编号
	private int roleId;// 角色编号
	private String adminCode;// 管理用户账号
	private String adminPassword;// 管理用户密码
	private String adminName;// 管理用户姓名
	private int sex;// 性别
	private String phone;// 手机号码
	private int createdBy;// 创建人
	private Date createDate;// 创建时间

	//新增项
	private String roleName;//角色名称
	
	public Admin(int id, int roleId, String adminCode, String adminPassword, String adminName, int sex, String phone,
			int createdBy, Date createDate, String roleName) {
		super();
		this.id = id;
		this.roleId = roleId;
		this.adminCode = adminCode;
		this.adminPassword = adminPassword;
		this.adminName = adminName;
		this.sex = sex;
		this.phone = phone;
		this.createdBy = createdBy;
		this.createDate = createDate;
		this.roleName = roleName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Admin() {

	}

	public Admin(int id, int roleId, String adminCode, String adminPassword, String adminName, int sex, String phone,
			int createdBy, Date createDate) {
		super();
		this.id = id;
		this.roleId = roleId;
		this.adminCode = adminCode;
		this.adminPassword = adminPassword;
		this.adminName = adminName;
		this.sex = sex;
		this.phone = phone;
		this.createdBy = createdBy;
		this.createDate = createDate;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public String getAdminCode() {
		return adminCode;
	}

	public void setAdminCode(String adminCode) {
		this.adminCode = adminCode;
	}

	public String getAdminPassword() {
		return adminPassword;
	}

	public void setAdminPassword(String adminPassword) {
		this.adminPassword = adminPassword;
	}

	public String getAdminName() {
		return adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(int createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "admin [id=" + id + ", roleId=" + roleId + ", adminCode=" + adminCode + ", adminPassword="
				+ adminPassword + ", adminName=" + adminName + ", sex=" + sex + ", phone=" + phone + ", createdBy="
				+ createdBy + ", createDate=" + createDate + "]";
	}

}
